package com.liner.homework.second;

import com.liner.homework.first.Seasons;

public class EnumTest {
    public static void main(String[] args) {
        Seasons winter = Seasons.WINTER;
        switch (winter){
            case SPRING:
                System.out.println("春天...");
                break;
            case SUMMER:
                System.out.println("夏天...");
                break;
            case AUTUMN:
                System.out.println("秋天...");
                break;
            case WINTER:
                System.out.println("冬天...");
                break;
        }

        Seasons[] seasons = Seasons.values();
        for (Seasons season : seasons) {
            System.out.println(season);
            System.out.println(season.name());

        }

    }
}
